import { fnGet, fnPost, fnFilePost } from ".";

export const fnGetDramaDatas = async () => {
  try {
    const data = await fnGet('/resources');
    return data || []; // 如果 data 为 null 或 undefined，返回空数组
  } catch (error) {
    console.error('获取数据失败:', error);
    return []; // 请求失败时返回空数组
  }
};

export const fnGetDetailDatas = async (id) => {
  const data = await fnPost('/videos',id)
  return data
}